package cn.git.demo.service.impl;

import cn.git.demo.dao.UserDao;
import cn.git.demo.pojo.User;
import cn.git.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service("userService")
@Transactional
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    public User selectUserById(Long userId) {

        User user = userDao.selectUserById(userId);
        return user;
    }
}
